/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package intopo.game.impl.givetake;

import java.io.DataInput;
import java.io.DataInputStream;
import java.io.IOException;

/**
 *
 * @author <a href="mailto:mariano.pedro@gmail.com">Pedro Mariano</a>
 *
 * @version 1.0 __DATE__
 */
final public class ReadGiveTakeDeterministicStrategy
		  implements intopo.game.ReadStrategy<GiveTakeStrategy>
{
	@Override
	public GiveTakeDeterministicStrategy read (DataInput dis)
		throws IOException
	{
		byte giveTime = dis.readByte ();
		byte takeTime = dis.readByte ();
		return new GiveTakeDeterministicStrategy (giveTime, takeTime);
	}

	@Override
	public int strategySize ()
	{
		return 2;
	}
}

// Local Variables:
// mode: java
// mode: flyspell-prog
// ispell-local-dictionary: "british"
// End:
